package com.ruoyi.wx.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租赁记录对象 rental_record
 * 
 * @author wt
 * @date 2020-12-13
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("rental_record")
public class RentalRecord implements Serializable {

private static final long serialVersionUID=1L;


    /** 租赁记录 */
    @TableId(value = "id")
    @TableField(value = "`id`")
    private Long id;

    /** 用户表(冗余) */
    @Excel(name = "用户表(冗余)")
    @TableField(value = "`user_info_id`")
    private Long userInfoId;

    /** 账号id */
    @Excel(name = "账号id")
    @TableField(value = "`account_id`")
    private Long accountId;

    /** 大区id */
    @Excel(name = "大区id")
    @TableField(value = "`region_id`")
    private Long regionId;

    /** 模式id(冗余 ) */
    @Excel(name = "模式id(冗余 )")
    @TableField(value = "`model_id`")
    private Long modelId;

    /** 段位id(冗余) */
    @Excel(name = "段位id(冗余)")
    @TableField(value = "`SEGMENT_id`")
    private Long segmentId;

    /** 微信id */
    @Excel(name = "微信id")
    @TableField(value = "`wx_id`")
    private String wxId;

    /** 微信号 */
    @Excel(name = "微信号")
    @TableField(value = "`wxh`")
    private String wxh;

    /** 微信备注 */
    @Excel(name = "微信备注")
    @TableField(value = "`wx_remark`")
    private String wxRemark;

    /** 微信名称 */
    @Excel(name = "微信名称")
    @TableField(value = "`wx_name`")
    private String wxName;

    /** 向谁租赁的 */
    @Excel(name = "向谁租赁的")
    @TableField(value = "`to_wx_id`")
    private String toWxId;

    /** 状态   0失效,1选择大区,2选择了帐号,3进行中 */
    @Excel(name = "状态   0失效,1选择大区,2选择了帐号,3进行中")
    @TableField(value = "`STATE`")
    private Long state;

    /** 创建时间 */
    @TableField(value = "`create_time`")
    private Date createTime;

    /** 更新时间 */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /** 租赁开始时间 */
    @Excel(name = "租赁开始时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`rental_start_time`")
    private Date rentalStartTime;

    /** 租赁结束时间 */
    @Excel(name = "租赁结束时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`rental_end_time`")
    private Date rentalEndTime;

    /** 总金额 */
    @Excel(name = "总金额")
    @TableField(value = "`total_amount`")
    private BigDecimal totalAmount;

    /** 用户主动回收时间 */
    @Excel(name = "用户主动回收时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`user_active_recycling`")
    private Date userActiveRecycling;

    /** 系统自动回收时间 */
    @Excel(name = "系统自动回收时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "`system_compulsory_recycling_time`")
    private Date systemCompulsoryRecyclingTime;

    /** 价格(冗余) */
    @Excel(name = "价格(冗余)")
    @TableField(value = "`price`")
    private BigDecimal price;

    /** 使用的金额 */
    @Excel(name = "使用的金额")
    @TableField(value = "`used_amount`")
    private BigDecimal usedAmount;

    /** 备注 */
    @Excel(name = "备注")
    @TableField(value = "`remark`")
    private String remark;

    /** 剩余金额 */
    @Excel(name = "剩余金额")
    @TableField(value = "`balance`")
    private BigDecimal balance;

    /** 账号信息id */
    @Excel(name = "账号信息id")
    @TableField(value = "`account_info_id`")
    private Long accountInfoId;
}
